package demo4;

public class TestPhone1 {
    public static void main(String[] args) {
        //根据Phone类，创建一个名为one的对象
        //格式：类名称 对象名 = new 类名称（）；
        Phone one = new Phone();
        one.brand = "小米";
        one.price = 6499;
        one.color = "黑色";
        System.out.println("品牌："+one.brand+"   "+"价格："+one.price+"   "+"颜色："+one.color);
        System.out.println("========================================");
        //成员方法
        one.call("雷军");
        one.sendMessage();

    }
}
